package org.advanced.util;

import java.util.ResourceBundle;

/**
 * @author John.zhang
 * @version Id: ResourceUtil, v 1.0 2020/12/22 19:53 ZhiYong Exp $
 * 配置文件读取工具类
 */
public class ResourceUtil {

    private static final ResourceBundle resourceBundle;

    static{
        resourceBundle = ResourceBundle.getBundle("redis");
    }

    public static String getKey(String key){
        return resourceBundle.getString(key);
    }

}
